package com.yonyou.sto.modules.ums.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yonyou.sto.modules.ums.mapper.UmsAdminRoleRelationMapper;
import com.yonyou.sto.modules.ums.model.UmsAdminRoleRelation;
import com.yonyou.sto.modules.ums.service.UmsAdminRoleRelationService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 管理员角色关系管理Service实现类
 * Created by aegon on 2020/8/21.
 */
@Service
public class UmsAdminRoleRelationServiceImpl extends ServiceImpl<UmsAdminRoleRelationMapper, UmsAdminRoleRelation> implements UmsAdminRoleRelationService {

    @Resource
    UmsAdminRoleRelationMapper umsAdminRoleRelationMapper;

    @Override
    public List<String> getRoleIdsByAdminId(String adminId) {
        return umsAdminRoleRelationMapper.getRoleIdsByAdminId(adminId);
    }
}
